import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { ApDeviceService } from './ap_device.service';


@Controller('/ap/device')
export class ApDeviceController {
  constructor(private readonly apDeviceService: ApDeviceService) {}

   //获取天线设备信息
   @Post('/ant_info')
   async getAntInfo() {
    return this.apDeviceService.getAntInfo();
   }

   //获取天线相控阵状态
   @Post('/ant_status')
   async getAntStatus() {
    return this.apDeviceService.getAntStatus();
   }


    //获取SIM卡号
    @Post('/sim_id')
    async getSimId() {
      return this.apDeviceService.getSimId();
    }


    // 获取KPSU设备信息
    @Post('/kpsu_info')
    async getKpsuInfo() {
      return this.apDeviceService.getKpsuInfo();
    }



    // 获取KPSU自检状态
    @Post('/kpsu_status')
    async getKpsuStatus() {
      return this.apDeviceService.getKpsuStatus();
    }


    // 获取cp设备信息
    @Post('/cp_info')
    async getCpInfo() {
      return this.apDeviceService.getCpInfo();
    }


    // 离散量获取
    @Post('/disc_get')
    async getDiscrete() {
      return this.apDeviceService.getDiscrete();
    }

    //获取ap设备信息
    @Post('/ap_info')
    async getApInfo() {
      return this.apDeviceService.getApInfo();
    }

}
